use mutable dictionary instead of maptable