added 2nd derivative.