removing amdefine crap