added templates cf_0 cf_1 etc