set dp and dv