refactored constants to consant.h