Mental glands make chemicals that come out through the skin. These chemicals help the animal tell when another animal is the same or a different species from them. The chemicals also help them choose mates.