fixing resizing issues 17