implemented dictionary reading