fixed up the new Resize function