cleaned up the to_excel part at the end.  Still need to clean up.