fix generation of arguments in condition statements
update function arguments in conditional statements