updated directory.rb file