Rewrite the structure