changed resizing methods