seperation of sim_gen and sim_genCont