add a setFlip method