Two different excretory organs are found among crustaceans: the antennal gland and the maxillary gland. Both have the same basic structure: an end sac and a convoluted duct that may expand into a bladder before opening to the outside. In most adult crustaceans only one or the other gland functions. The functional gland may change during the life cycle. The antennal and maxillary glands primarily regulate ionic balance. The total balance of salts and water is also controlled in part by the gut, which can absorb both. The antennal gland also has been shown to reabsorb glucose. Most crustaceans excrete the end product of nitrogen metabolism, in the form of ammonia, through the gills. Some of the more terrestrial forms produce urea or uric acid, which are far less toxic than ammonia. Urea and uric acid may be stored in special large cells near the bases of the legs or excreted without the loss of much water.