cycle coding