need to add locfit to distance calc