add state to dp