also update the search key and end key