adding another DP method