adding a index