added inf_to_index_raw()