trying dynamic resizing