changed csv gen