resizing not working