max allowed variance should be of half of min distance