dealing with cls flipping