minor renaming
simplify knapsack