change back to generate the variable in loop