proper range-finding