added error handling
removed optional name field for models