add flight basic function