update 'selected'