complex report pagination working