dipatching template