moved constant definitions to header