implement simple element diffs