c# updated to correct parservalue and class