bug second_cost solved