Online flipping