updated xls export function