added g(r) window