use 1.upto not 0.upto for the logging threads