flipping sequence adjusted