smarter resize
syntax err