function wont let me set it as public - C#