add getter and setter attr