removed amdefine dependency