add method of dictionary