need help to fix some code - C#