updating number of threads to see if that improves the really bad runtime