update the contents