prevent duplicates in insert flight