dryed code. building backwards paginator