behave a little better when resizing