computing parity related