going to try it on real data... But there is a bug in the total products part..