refining input_file