updated serializable functionality on model and set