working for 180 invert and flip options