working on generating HTML