implemented messages_send_message func