add get and set attribute