modify update logic for selector value