- added methods for templatebuilding