[detect_period] add