correct flip logic