added visit method to file system