switch to mutable dictionary