some updates about backend for pagination