restored erroniouslly removed global variable