The kidney's role's in the excretory system is to?