limit maximum number of detected points