minor change to make resizing look much better