had to tweak the add_to_index call