gendata for total and indiv