fixed format of index and add