forgot same stuff with counter var in new thread routine