restoring basic structure