flip in both directions