process_input modified