adding multiple threads to speed processing