loading input data | refactoring