update type