created getType and changed type in FileManager to string