to build templates