search cycle code