modified error handling to seperate name field from calculations