added threads. Still have leak