change to make the variable storing data global