error handling and processing content