changed how colors are decided