debug resizing