work on write to excel func parameters