correct error method