removed write to csv