updating domain model