added error on method