updated writing of index and semantic vectors