adding template for a guard.