Avoid 'warning: private attribute? '