changed route for directory to dictionary