merge with multithreadedSAS