simplified pagination solution by chaining methods