why do you wrap currentRev and previousRev in this slices?