added extended implementation of rr