debugging pagination