added threads to prediction