added set minimum selection feature, removed XCode 5 warning