moved static DWORD tick to debug scope only