update set and merge