made furthur changes to excel file generation