removes unnecessary durations