update the structure