trying to fix resize issue