added guard template