simplify macros