added deriv