fixed to_csv to find_each