some corrections with travelDistZ