updating tripmeasure.R