fix - was overwriting value of global variable