use resize for known size of Array