add the template for Prim