obtaining energy and removing wastes