simplify pltemplate