update type color