simplify 0 conditions