fix and flip

fix and flip