pagination without GUI