fixing resizing issues 24