fix inRange() to remove synch