add distance and time