fix dp bug and change dict base
update