changed csv to txt. Changed dynamic casting to typeid