added error msges