refactored data retrieval in a specific method