code generation for dvars tested (it works, yay)