added error comments