cleaned up dp map interface.