imporove getting history