change loop variable