change object to hash map