added g(r)