update in class