move macro from .cpp to .h