load cdv, nest function