fixing resizing issues 2