def inside def did not work for file_update, so I brought update_it back to previous.