detect error if number of 1 or 0 bits seems wrong as the parity bit (row in 2d matrix). then add error correction codes (other parity bits representing column in 2d matrix). if both parity bit and error correction code seem wrong, you can figure out the exact bit (coordinate) that seems wrong.