update, add new elements