combined recursor hooks and leaf into recursor control