handling the case when vdw fuction is not defined.