fixed little bug; threads working