reverted back to original code in get_historical_data fxn