Trying do detect error 3