need to work with selection changes