Turtles bob their heads up and down when they see another turtle. Perhaps bobbing the head up and down helps the chemicals from the mental glands get in the air. Salamanders move when they see another salamander. For example, they snap their jaws. Only salamanders that have mental glands do this, so this also spreads the chemicals through the air.