updating to templates