update __set() method