found a quicker way to calculate end journey, removing lines