parity check now returning a boolean