modification in HistoryRecordsService