dp for all