now working on resize