fix mapreduce problem, add related factors and independent factors