trying to get flipping working