added a global variable to send text to b exported