type update function