working with SelectionManager