minor changes to how resizing works.