map keys and vals in table