finished template cmagic.