The kidneys of all vertebrates act as osmoregulators. This means that they