fixed heatmap stdin input