added distance and direction