finished ar_detect