code send guard