changed priority for templates determined by model type