fixing resizing issues 16