move attribute to private field