dont use global variables to avoid sporadic failures caused by order of execution