first pass on resizing. broken