change to mutable hashmap for metadata