putting cm_template in place