adds a bit error detection