cleanup dictionary entries.