Revert "fix variable name conflict"

This reverts commit 2265dabcfae3bcfbfc7b982ce742b2bb15a7b9e8.
remove redundant outer loop (loop parameter host was unused)