compute edits