implemented readDict()