add a part of regression caculation