fix logic
merge dict api