fixed bulkupdate and delete functions