change sms sending algorithm