adding amdefine