refactored paths to records