remove duplicate cruft