work on batch update.