merge with dp