Change start index

Changed start index to choose earlier of the two between y and z
velocity