changes type colour