num_cycles works
some fix