actually adding the index