refactored

changed constant to local variable