restruct rdiff