take apart update_flight_function
always create