combine both binary cases regardless of boolean type