updates contents