support @index in each block