remove unneeded global