multiprocessing the filteringg