fixing resizing issues 27