additional check for error handling