refactoring MagicNumber