removed threading, works better