prepare for getSelectionType