join child threads with main