correct histop function