changing to index