fold conditions together