work through pagination