removes some cruft