update for custom vardiff