putting in template