added export to excel method