capt resizing