initial code for loop index and call duration