changed code formatting to csharp