correction of template