totalTime init
move list outside