redoing index for layout inheritance