correcting index