change duration to length and removes some csv file