update with array of sting lengths