this index is needed because the data is stored as an array, so this keeps the order of the array