some DP problems