extract pagination