handle type update