getter and setter added to shallow generator