endless adapter modified for pagination