migrates ar based algorithm to yujin_ocs