Modified variable name in loop macro