make it compile under mac, update color channel