removed unrequired global variable