init index_map with -1