modify macro for debug