everypony needs a tableflip function