implemented the compiler for cond