udpate class