rr function takes in 100 quanta now