fixed reducing of csv file