new declarations for error handling