check instance of errors