fixed 1st thread creation issue, now need to fix random redundant thread