made data variable global