[WIP] - refactored getSelection()