refactored and added list of constants to be used as global variables