adding macros for rates/turnons