guard template