refactoring message to sms_message