update for class define