heap hash debugging function