replaced r.Sms with r.Message