first attempt at adding partial deriv code