error handling typo