more work on resize