Parity checking with targetting
tiny refactor