separated GetIndex into GetIxyz, Ic, and Ir