set resizing ability in constructors