more work for color flipping