fixing resizing issues 20
fixing resizing issues 21