use bulk replace instead of one by one