fix bug - needed global...