detect_points to debug