added to_struct back to document class