filling in template