debug automatic resizing