replaced a .clear by removeAll in setter
removed one for loop in setter