refactor sending SMS