put macros in the beginning