move defines to header file