updates for flipped rectangle