run error detection