replaced find pthread with find thread