please fix method for pagination