detect error2