trying to get resizing to work