adding dynamic resizing