changed thread num to 3