update the element.