Methods of error detection