changing _element / _contents to _key / _val

for element -> val maps