updated end to endfor
Merge pull request #1691 from katydecorah/master

updated end to endfor