Transverse momentum integrated yield (d$N/$d$y$) of \kstar and \phim as a function of the averaged charged particle density (\avdndeta$_{|\eta|\textless0.5}$) in pp and \PbPb collisions at \snn $=$ 5.02 \TeV and compared with result from Pb--Pb collisions at \snn $=$ 2.76 \TeV . The statistical uncertainties on the data are shown by bars and the systematic uncertainties by boxes. The shaded box shows the uncorrelated systematic uncertainties.