seems like this could be simplified with `if (distance < closestDistance && distance < PERIPERSONAL_RADIUS)`