working on selectedValues