new logic about flights