rewrite some derivatives