max_pages is int