switch 'pages' and 'items'