added distance count