changed index to refect the previous changes