readding basic resizing method