finished converting all Script statements to Var parameters