finds the correct flights