added the VD function