added bulk update feature to speed up performance