partial regression function implement now