modify the sms function