assign max_items