added indices to the Grating table