deriv code