modified model to behave with serializables