fixing resizing issues 23