modified men..childrep.cpp