changed index variables