changing index type if a non-string value is added