update extra and extraSub for type