removed bug for finding error messages