removed bool flag from index Add method and created separate AddUnique method