refactor process_inputs