changing static int to #define