create macros for simple models