oops forgot to take out the thread join