template modification