changed rbind of totals