changed csv logging