added the redefine dv function