change r to rev since its destructive