update ALL the elements, not just the first one