working update on length of array