ended encapsulation--TODO: validation in set