class csv function finish fixed