removed global variable declaration