update for type