how to access global variable