in the if(vec .... ) I change them my to selected as well, but the above code doesn't show that.