refactoring: remove global variable GLOBAL_INPUT_VALUE