convert static const to #define