remove (unnecessary) global variables