modifying csv generator