fix tempalte for cmp