working on resize, nearly done