this shouldn't be global pull this into the correct scope and only declare it where needed.