The dinuclear model of the formation mechanism of a superheavy compound nucleus assumes that when all nucleons of the projectile have been transferred in to the target nucleus the compound nucleus is formed. The nucleon transfer is determined by the driving potential. For some reaction channels, the relation between nucleon transfer and the evolution path of the neutron/proton ratio is rather complicated. In principle, both the dynamical equation and the driving potential should be a two-dimensional explicit function of the neutron and proton. For the sake of simplicity we calculated the driving potential by choosing the path of the nucleon transfer which is related to the nutron/proton ratio, and the calculated evaporation residue cross-sections to synthesize the superheavy nuclei are much closer to the experimental data.