added error messafe