improved hist update