resize things appropriately