trying to fix errors due to static variables