levels renamed from 0 to 1 base index