clean up getSelected()