rewrite structure.