switch to c# (facepalm)