fixing csvfilewriter