you should write @index += 1