Cont_generator