worked on selection changes