change to root datatypes and pre-increment operator in loops
change to ROOT datatypes and pre-increment operator in forloops