update dict class to singleton