optimization on pagination_data