implemented send_message() callback function