cycle_net functions