moved constant definitions to separate method