SECOND AMENDMENT TO credit agreement