migrate old index mapping to new array type mapping

unused var? what is this change doing?