understands pagination