use static variables for `canResize`