with excel writer and debugged code