updating items at once