Experiment with fliping function