modify codegen for variableDeclStatement and ifStatement