Adjust int method previous pagination library