changes to flip option