Change method of computing parity