changed getCircularRange to use pruneForMin too