Scientists have discovered that repellent odors suppress the perception of pleasant smells. This happens because certain brain structures that respond to attractive odors are inhibited by a repellent one. These processes in the brain are also reflected in the behavior of the flies. This helps them to avoid spoiled or infected food sources, which would have fatal consequences for the flies and their offspring.