problem in gen csv