added macros for testing