changed indexes to indices