update getter and setter