seems OK now, next to handle the error in report_hierarchy