added single global variable