working on relative to general index conversion