more work in progress for pagination