removes longest leg and adds duration to leg model class