finish detect