use macros for integrals