update input_writer