change loop statement and report