refactor constants