updating the selection