update directionary