Fixed the pull request. Flipped version