implement maximumSelectionSize