refine template  line form