added if to transpiler