add begin end snippet