resizing logic for MO