temporary solution for flipping bases