updated historical data procedure