doctor sections refactored