fixing resizing issues 26