solved work break problem with DP