wrote logic for pagination, but params are wrong. debugging.
still debugging