changed things to flip