fixing resizing issues 29