refactored constants out