added distance calculate