added getJacobian method