resizing and more refinements.