failed to fix the flipped r problem.