add naive 'cond' implementation and remove 'if'