working on resize functions