trying to fix flipping classes