added in template selection