code refector for colour model