update type and colors