sendCode works