added distance calc2