delete old F# version and simplify C# version