cleanup extraneous tags