finding error source