got pagination working