stores the values ​​in two different entities