adding a resizing function I like.