updating the structure