added more to distance calc