adding bulk of template