index transformation