filled cmpl_do.c with child routines