fixing resizing issues 3