added speeds_for_detector()