refactor to no longer need a method running before constant definitions