remove globals