added line limit support in getRow