added taking into account time of travel