rename `max_items` -> `num_items`