change the number of totalTimes