Solution to REVC problem