add cutting and resizing