added debug output function to see price history