fix color_samples method