preparing for error handling