move to cuts.h
add total_gen
add total_gen