rename method write_generate_file -> write_generating_file