update error_ctrl and adjusted tree structure