implementation for dictionary closed