modifing the index