remove superfluous cruft