new script to transform assignments into let statements