map flips properly