working on deriv test