fixed index for grammar