magic number refactoring