corrections and debugging in heatmap_find...