rename update_element to update