update function class