merge with pagination