p26: refactor cond