add build template method