trying to get the resize to work