using dbg macro
calibrate with macros