fixing resizing issues 12