do not try to print more rows than available