Reverse the order of the flag and allergy in the tuples