modified share_dens_keeper