now trims the edits