process edits properly