added taking the limit n to infinity