added duplication prevention of the same key in the object.