add a function to generate a xls file