changed Index to index