urine is produced by malphigian tubes which absorb salt, water, and nitrogenous waste and release it out of the anus. Uric acid diffuses into tubules and exchange pumps let H+ enter cells and Na+ and K+ exit. Ion secretion alters osmotic pressure, drawing water, nitrogenous waste, and electrolytes into tubules.