changed id_to_title_map without using shelve