fixing resizing issues 19