Rewriting basic structure