tempo marks on  saving inside the loop and outside as well