refactored the flightplan create