added error msgs