dictionary transformation