update stucture