Gas around black holes and interstellar medium distribution are key factors in understanding the growth of supermassive black holes and the evolution of their host galaxies. However, as a crucial parameter, gas density is hard to determine reliably, because the general method is not applicable to all quasars.