changed dtwComputation, record frame number