updated model.cs