attempt at global variable