support loop.index in for