added revc code