got working resizing