updated to new pagination api