fixing resizing issues 18