added error method 2