plans.each_with_index do |plan, modal_count|