how does Bacteria get rid of waste?