updated setError method calls