modified by Dharani
pain in life
worked on html output