make 3 global variables thread-local