finish dictionary problem