modularized generate output
modularized generate and run heatmap. validation works.