adjusted vision to return "true" distance
changed goto to accept variables passed to it