add multithreading
add multithreading to compare and deletion