adding my rpe-paper to explain better what I'm doing with this code