fix bug, add argument for send-message function