max rows statefull

Signed-off-by: bovitobo <bovitobo@yahoo.com>