updates partial dependence function