updating for class