refactor constant