adding error handling in simply name