add resizing an array using append