cleaning up globals